/***** Serendipity Booksellers -- bookdata.h header file *****/

#ifndef BOOKDATA_H
#define BOOKDATA_H
#include <iostream>
#include <string>
#include <fstream>
using namespace std;

/***** BookData Class Declaration *****/

class BookData
{
private:
	string bookTitle;			// Title
	string isbn;				// International Standard Book Number
	string author;				// Author of book
	string publisher;			// Publisher of book
	string dateAdded;			// Data book added to inventory
	int qtyOnHand;				// Quantity on hand
	double wholesale;			// Wholesale cost of book
	double retail;				// Retail price of book

public:
	BookData();					// Default constructor
	void setTitle(string);
	void setIsbn(string);
	void setAuthor(string);
	void setPub(string);
	void setDateAdded(string);
	void setQty(int);
	void setWholesale(double);
	void setRetail(double);
	string getTitle();
	string getIsbn();
	string getAuthor();
	string getPub();
	string getDateAdded();
	int getQty();
	double getWholesale();
	double getRetail();

	void bookInfo();
	/****************************************************
	 * NEW ADDED										*
	 ****************************************************/
	BookData bookReturn();
	/****************************************************/

	// Serilization methods
	void load(fstream &);
	void store(fstream &);
};

#endif